using System;
namespace ch.ethz.ssh2
{
	
	/// <summary> May be thrown upon connect() if a HTTP proxy is being used.
	/// 
	/// </summary>
	/// <seealso cref="Connection.connect()">
	/// </seealso>
	/// <seealso cref="Connection.setProxyData(ProxyData)">
	/// 
	/// </seealso>
	/// <author>  Christian Plattner
	/// </author>
	/// <version>  2.50, 03/15/10
	/// </version>
	
	[Serializable]
	public class HTTPProxyException:System.IO.IOException
	{
		private const long serialVersionUID = 2241537397104426186L;
		
		//UPGRADE_NOTE: Final was removed from the declaration of 'httpResponse '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
		public System.String httpResponse;
		//UPGRADE_NOTE: Final was removed from the declaration of 'httpErrorCode '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
		public int httpErrorCode;
		
		public HTTPProxyException(System.String httpResponse, int httpErrorCode):base("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse + ")")
		{
			this.httpResponse = httpResponse;
			this.httpErrorCode = httpErrorCode;
		}
	}
}